package com.qidian.mes.pojo.cal;

import lombok.Data;

import java.util.Date;

/**
 * @Author 04冯虹丹
 * @Company 起点编程
 * @Time 2023/10/31 11:32
 * @Description
 */


public class CalPlan {
    private Long planId;
    private String planCode;
    private String planName;
    private String calendarType;
    private String startDate;
    private String endDate;
    private String shiftType;
    private String shiftMethod;
    private Integer shiftCount;
    private String calPlanStatus;
    private String remark;
    private Integer status;
    private Date createTime;
    private Date modifyTime;
    private Long calPlanStartDateMillis;
    private Long calPlanEndDateMillis;
    private Long calPlanCreateTimeMillis;
    private Long calPlanModifyTimeMillis;

    @Override
    public String toString() {
        return "CalPlan{" +
                "planId=" + planId +
                ", planCode='" + planCode + '\'' +
                ", planName='" + planName + '\'' +
                ", calendarType='" + calendarType + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", shiftType='" + shiftType + '\'' +
                ", shiftMethod='" + shiftMethod + '\'' +
                ", shiftCount=" + shiftCount +
                ", calPlanStatus='" + calPlanStatus + '\'' +
                ", remark='" + remark + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getPlanId() {
        return planId;
    }

    public void setPlanId(Long planId) {
        this.planId = planId;
    }

    public String getPlanCode() {
        return planCode;
    }

    public void setPlanCode(String planCode) {
        this.planCode = planCode;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    public String getCalendarType() {
        return calendarType;
    }

    public void setCalendarType(String calendarType) {
        this.calendarType = calendarType;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getShiftType() {
        return shiftType;
    }

    public void setShiftType(String shiftType) {
        this.shiftType = shiftType;
    }

    public String getShiftMethod() {
        return shiftMethod;
    }

    public void setShiftMethod(String shiftMethod) {
        this.shiftMethod = shiftMethod;
    }

    public Integer getShiftCount() {
        return shiftCount;
    }

    public void setShiftCount(Integer shiftCount) {
        this.shiftCount = shiftCount;
    }

    public String getCalPlanStatus() {
        return calPlanStatus;
    }

    public void setCalPlanStatus(String calPlanStatus) {
        this.calPlanStatus = calPlanStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }


//    public Long getCalPlanStartDateMillis() {
//        if(this.startDate != null)
//            return this.startDate.getTime();
//        return null;
//    }
//
//    public void setCalPlanStartDateMillis(Long calPlanStartDateMillis) {
//        this.calPlanStartDateMillis = calPlanStartDateMillis;
//    }
//
//    public Long getCalPlanEndDateMillis() {
//        if(this.endDate != null)
//            return this.endDate.getTime();
//        return null;
//    }
//
//    public void setCalPlanEndDateMillis(Long calPlanEndDateMillis) {
//        this.calPlanEndDateMillis = calPlanEndDateMillis;
//    }

    public Long getCalPlanCreateTimeMillis() {
        if(this.createTime != null)
            return this.createTime.getTime();
        return null;
    }

    public void setCalPlanCreateTimeMillis(Long calPlanCreateTimeMillis) {
        this.calPlanCreateTimeMillis = calPlanCreateTimeMillis;
    }

    public Long getCalPlanModifyTimeMillis() {
        if(this.modifyTime != null){
            return this.modifyTime.getTime();
        }
        return null;
    }

    public void setCalPlanModifyTimeMillis(Long calPlanModifyTimeMillis) {
        this.calPlanModifyTimeMillis = calPlanModifyTimeMillis;
    }
}
